package com.warren.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @version V1.0
 * @Description: 执行完初始化脚本
 * @author: warren
 * @date: 2022/7/13$ 10:01$
 */
@Component
@Slf4j
public class StartAllInit {
    //构造函数之后执行
    @PostConstruct
    public void init() {
        System.out.println("容器启动后执行");
        log.info("执行初始化脚本任务");
    }
}
